package JavaSE.CODE.ClassInCommonUse.BigDecimal;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class big {
    public static void main(String[] args) {
        double f = 0.012324;
        f = new BigDecimal(f).setScale(2,RoundingMode.HALF_UP).doubleValue();
//        System.out.println(f);
        System.out.println(new BigDecimal(f));
    }
}
